Repository navigation
crypto: OpenSSL memory option (gitlink, guidelines, tooling fixtures) - #30
Merged
Merged
Conversation
added 25 commits
November 17, 2026 11:18
…rrors 13 and 14, the adapter)
… every allocation goes to it
…3.5.9's counts, and clean on Linux's clang-tidy
…nd failing installs
…nconditionally, and fail_init pins OpenSSL 3.5.9's dead queue and unfreed blocks
…beside the option
…a TLS 1.3 handshake
…datachannel's static initialisers it links
…mple tags and use-case Jamfile
Chapter 15's crypto entry gains OpenSSL's memory option as stream M built it: native only and refused on every WebAssembly target, the defaults told by their three addresses, its tests and fixtures; the allocation rule states the option and the error values 13 and 14 are the option's. Chapter 17's block leaves and chapter 16's crypto line drops it. Chapter 19 records that a libcrypto DLL is refused where the specification has a Windows branch.
…resource, and generate_test's docstring keeps to 100 columns
…rary The owner dropped plan Tasks 31 and 32 on 2026-11-17: chapter 16's crypto line drops trystero's code on the library, and chapter 17's block "trystero's migration (increment 3)" leaves.
…rinting it, with no fluent chain
… chain, Jam comment width)
…ure on a threaded OpenSSL, OPENSSL_thread_stop on Windows and fail_init_threads
…READS, the Windows thread cost, the page's and Doc Comments' precision)
…ording, OPENSSL_thread_stop on every path of the example)
This was referenced Nov 18, 2026
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What the option does
webcpp::crypto's OpenSSL memory option routes every allocation OpenSSL makes in the process through astd::pmrmemory resource that the program chooses, by installing three adapter functions withCRYPTO_set_mem_functions(install_memory_functions(), called first inmain). It is native only: it is refused on all WebAssembly targets (Emscripten, WASIp2, WASIp3) with a diagnostic naming the target.This PR carries the superproject side: the
libs/cryptogitlink bump to the pushed library head (cc2b801), the crypto coding guidelines for the option, a 0.1.0 release note wording fix, and tooling fixtures.Shared tooling: the diff touches
tools/, only undertools/test/fixtures/crypto_jamfiles/(new Jamfile fixtures for the memory option). Nothing under.github/changes.Verification
From the stream's verify and final-fix reports:
-a: native 180, gcc-15 168, wasip2 141, wasip3 134, emscripten 92, all green. After the final fix wave, native-a(29 memory tests plus docs) and gcc-15 were rerun; the last commits touch native-only docs, Doc Comments and the example.Ruling on a failing resource
A resource that fails during OpenSSL's base initialisation is unrecoverable on a threaded OpenSSL (MSVC always,
threading=multielsewhere): OpenSSL re-enters its own initialisation and the call never returns (abort on macOS, deadlock on Linux, spin on Windows). The resource must serve OpenSSL's start-up. On a single-threaded OpenSSL the failure is permanent and everymakereturnsbackend_failure.fail_initpins the single-threaded behaviour;fail_init_threadspins the threaded boundary. The guide, the Doc Comments, the guidelines and the proposals say the same.Related PRs
🤖 Generated with Claude Code